<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="bower_components/treegrid/jquery.treegrid.css"/>
</head>
<body>
    <div>
        <table id="menu-table"></table>
    </div>
    <script src="bower_components/jquery/dist/jquery.min.js"></script>
    <script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
    <script src="bower_components/treegrid/jquery.treegrid.extension.js"></script>
    <script src="bower_components/treegrid/jquery.treegrid.min.js"></script>
    <script src="bower_components/treegrid/tree.table.js"></script>
<script>
    var columns = [
        {
            title : '菜单ID',
            field : 'id',
            align : 'center',
            valign : 'middle',
            width : '80px'
        },
        {
            title : '菜单名称',
            field : 'name',
            align : 'center',
            valign : 'middle',
            width : '130px'
        },
        {
            title : '上级菜单',
            field : 'parentName',
            align : 'center',
            valign : 'middle',
            sortable : true,
            width : '100px'
        }
    ];
    var treeTable=new TreeTable("menu-table","/menu/doFindObjects",columns);
    treeTable.init();
</script>
</body>
</html>